package abstractdemo2;

public class Test {
    public static void main(String[] args) {
        dog d = new dog("旺财", 15);
        sheep s = new sheep("咩咩", 18);

        d.eat();
        s.eat();
    }

}
